package com.ruoyi.stock2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock2.mapper.WEBWORDMapper;
import com.ruoyi.stock2.domain.WEBWORD;
import com.ruoyi.stock2.service.IWEBWORDService;
import com.ruoyi.common.core.text.Convert;

/**
 * webwordService业务层处理
 * 
 * @author ruoyi
 * @date 2019-12-19
 */
@Service
public class WEBWORDServiceImpl implements IWEBWORDService 
{
    @Autowired(required = false)
    private WEBWORDMapper wEBWORDMapper;

    /**
     * 查询webword
     * 
     * @param id webwordID
     * @return webword
     */
    @Override
    public WEBWORD selectWEBWORDById(Long id)
    {
        return wEBWORDMapper.selectWEBWORDById(id);
    }

    /**
     * 查询webword列表
     * 
     * @param wEBWORD webword
     * @return webword
     */
    @Override
    public List<WEBWORD> selectWEBWORDList(WEBWORD wEBWORD)
    {
        return wEBWORDMapper.selectWEBWORDList(wEBWORD);
    }

    /**
     * 新增webword
     * 
     * @param wEBWORD webword
     * @return 结果
     */
    @Override
    public int insertWEBWORD(WEBWORD wEBWORD)
    {
        return wEBWORDMapper.insertWEBWORD(wEBWORD);
    }

    /**
     * 修改webword
     * 
     * @param wEBWORD webword
     * @return 结果
     */
    @Override
    public int updateWEBWORD(WEBWORD wEBWORD)
    {
        return wEBWORDMapper.updateWEBWORD(wEBWORD);
    }

    /**
     * 删除webword对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWEBWORDByIds(String ids)
    {
        return wEBWORDMapper.deleteWEBWORDByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除webword信息
     * 
     * @param id webwordID
     * @return 结果
     */
    @Override
    public int deleteWEBWORDById(Long id)
    {
        return wEBWORDMapper.deleteWEBWORDById(id);
    }
}
